// ==UserScript==
// @name bug
// @author wgu
// @description  bug
// ==/UserScript==
/*
var xqDB = gw.db('dic4.sqlite');
xqDB.open();
function get(code,step,obj){
	//console.log(code);
	if(step==5) return obj;
	var i=0,r=xqDB.getData("select code from dict where b='"+code[code.length-1]+"';",[0]),l=r.length;
	for(i=0;i<l;i++){
		var temp=r[i][0],g=step+1;
		obj[temp]=get(temp,g,{});
	}
	return obj;
}
console.log(get(String.fromCharCode(27468),0,{}));
xqDB.close();
//GM_import('a.js',this);
//console.log(gg);
/*
var req=GM_getRequest();
req.open('GET', 'http://www.google.cn', true); 
req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
req.send(null);
req.addEventListener("load", wgu, false);  
function wgu(){
	console.log(this.responseText);
	setTimeout(fn,0);
}

function fn(){
	alert(this==window);
}
___jQuery.net={};
___jQuery.net.panel={
	'_panel':function (x,button){
			if(___jQuery("#wgu_tool").length==0){
				___jQuery('<div id="wgu_tool" style="z-index:99999;bottom:0px;border-width: 1px;position: fixed;border-style: solid;border-radius: 11px 11px 0px 0px;padding:5px;background-color:White;">'
					+'<div>welcome to my tools! welcome to my tools! </div>'
					+'</div>').appendTo('body');
			}else{
				___jQuery("#wgu_tool").html('<div>welcome to my tools! welcome to my tools! </div>');
			}
				
			var temp=___jQuery('<div></div>').appendTo('#wgu_tool');
			button.forEach(function(v,i){
				___jQuery('<button>'+v.name+'</button>').appendTo(temp).bind('click',v);
			});
		
			return this;
		}
}
var req = gw.req(),convert=gw.convert,ob=gw.ob;
ob.add('request','http://actnew.imtt.qq.com/*','set','User-Agent','MQQBrowser/26 (Linux; U; 2.2.1; zh-cn; MB525 Build/Defy_Hiapk_v2.2;480*854');
function post(v){
	var req = gw.req();
	req.addEventListener("load", function(){
			//p();
	},true);
	function p(){
		
		//BeautyAction?action=do_left_flip
		req.open('GET', 'http://actnew.imtt.qq.com/BeautyAction?action=awards', true); 
		req.setRequestHeader('qcookie','AD=rsa2%2B%2B0iOtIWvG97rktN2AlpLv7KhZYUdRzDyYS7izQ%21|aF4Ez5gtS%2FK6w98dIaeDfZl76dD3QZzHJWXy%2FqxAP7%2FPrs1zSPVazg%21%21;msid=AQZ0Swy7cd1XBqt4i_trOeSG;edition=w90.mail.qq.com;'+v);
		req.setRequestHeader('q-guid','fb5a08ffa021c7d6042a01f3fac8ba9d');
		req.setRequestHeader('q-auth','f2641262687c1d99f2c29189bbc38ae14bea510b710753e5');
		req.send(null);
	}
	return p;
}
function qqGame(){
/*
	['sid=AaUZz-iBmhtyb7p9o7rl9-M9;',
'sid=AcGE50lE7ccrtKhrfBFjj8M9;',
'sid=AXWqPuXVQq1PEiVyip6G2008;',
'sid=AaFnZMBo6ZuoPnF60I6G0PU9;',
'sid=Af5qPo-XL9VS_jmvhaUhiAQ9;',
'sid=AWs8sR5gnjxyul2Pk9oYs9E-;',
'sid=Aa4USy3p04mulVfwyNdCudU-;',
'sid=AV5kF00l5_mB56OO80MIkpk-;',
'sid=Ae2RAPTWa39xpJ1gz_brEhY-;',
'sid=AZqyBVlRIeiEPBd0iWaHNo8_;',
'sid=ASQiU9WhC_8LbbqgFJ-5qfc_;',
'sid=AZSklMibSVPHW2LQSKFGhdc_;'].forEach(function(v){
	post(v)();
})

['sid=ARTs3kvpXFZSZ-w9bayaAyJU;',
'sid=AU-FCypD5yhwttluO3AqEWpV;',
'sid=AYb94XpSZd6XJ7bstqbZaNFW;',
'sid=AaFcnbqwyTlkCeZzhFYH7tNW;',
'sid=AeGO1sh6LSLRbQg3Vxx4vLlW;',
'sid=Aa7FDxhv5g5gTxYHiGWuq0xX;',
'sid=AS640vrF0uxxlf2upZA253dX;',
'sid=AbbC_zGMsmnQ0Q_aCla2rqJX;',
'sid=Aa2U6gJotbFWUjA079Rb0glX;',
'sid=AbOfsg8MGQi2IvDvo1bJvwpY;'].forEach(function(v){
	post(v)();
})


}
___jQuery.net.panel._panel('',[qqGame]);
*/
gw.import('pag/yzm2.js',window);

